<?php
/**
 * 入驻管理
 */
class MerchantsSettledController extends AdminBase{
	public function actionIndex(){
		$this->baseIndex('MerchantsSettledModel');
	}
	public function actionCreate(){
		$this->baseCreate('MerchantsSettledModel');
	}
	public function actionUpdate($id){
		$this->baseUpdate('MerchantsSettledModel','',true);
	}
	public function actionDelete($id){
		$this->baseDelete('MerchantsSettledModel');
	}
	public function actionView($id){
		$this->render('view',array(
			'model'=>$this->loadModel($id),
		));
	}
	public function loadModel($id)
	{
		$model=MerchantsSettledModel::model()->findByPk($id);
		if($model===null)
			$this->error('找不到记录');
		return $model;
	}

}